<div class="modal-content">
  <div class="modal-header">
    <h6 class="modal-title text-purple">网络文件</h6>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  </div>
  <div class="modal-body border">
    <form id="markDownOuter" action="{:DcUrl('markdown/attachment/save')}">
      {if function_exists('attachmentSave')}
      <div class="form-group row">
        <label class="col-3" for="attachment_score"><strong>所需积分</strong></label>
        <div class="col-9">
          <input class="form-control form-control-sm" name="attachment_score" id="attachment_score" type="text" value="0" autocomplete="off" required>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-3" for="attachment_score"><strong>文件名称</strong></label>
        <div class="col-9">
          <input class="form-control form-control-sm" name="info_name" id="info_name" type="text" autocomplete="off" required>
        </div>
      </div>
      <div class="form-group row">
        <label class="col-3" for="attachment_url"><strong>外链地址</strong></label>
        <div class="col-9">
          <input class="form-control form-control-sm" name="attachment_url" id="attachment_url" type="url" autocomplete="off" required>
        </div>
      </div>
      <div class="form-group row">
        <div class="col text-center">
          <button class="btn btn-purple" type="submit">提交</button>
        </div>
      </div>
      {else/}
      <div class="input-group input-group-sm py-3">
        <div class="input-group-prepend">
          <span class="input-group-text">外链地址</span>
        </div>
        <input class="form-control" type="url" name="attachment_url" id="attachment_url" autocomplete="off" required>
        <div class="input-group-append">
          <button class="btn btn-secondary" type="submit" style="border-top-right-radius: .2rem;border-bottom-right-radius: .2rem;">提交</button>
        </div>
      </div>
      {/if}
    </form>
  </div>
</div>